$(function(){
	bindDaoHang();
	
	//绑定导航
	function bindDaoHang(){
		$(".daohangbtns").click(function(){
			var index = $(this).data("index");
			if(0 == index){
				window.location.href = ctx + "/web/yjjj/index";
			}else if(1 == index){
				window.location.href = ctx + "/web/yjjj/info";
			}else if(2 == index){
				window.location.href = ctx + "/web/yjjj/product";
			}else if(3 == index){
				window.location.href = ctx + "/web/yjjj/activity";
			}else if(4 == index){
				window.location.href = ctx + "/web/yjjj/contact";
			}
		});
	}
	
});